//
//  PublicAccount.m
//  SouthChina
//
//  Created by creator_lq on 14/12/4.
//  Copyright (c) 2014年 科创. All rights reserved.
//

#import "PublicAccount.h"


@implementation PublicAccount

@synthesize appId;
@synthesize appName;
@synthesize type;
@synthesize sort;
@synthesize qp;
@synthesize initialWord;
@synthesize funcDesc;
@synthesize headImg;
@synthesize subscribeStatus;
@synthesize isRecommend;
@synthesize isReceive;
@synthesize disableChat;
@synthesize isBasic;    //基础应用
@synthesize isBanner;   //广告位
@synthesize appType;    //分类
@synthesize isHome;     //首页应用
@synthesize userSort;//首页应用排序


-(BOOL)isHomeApp
{
    
    return [@"1" isEqualToString:isHome];
}

-(void)setIsHomeApp:(BOOL)isHomeApp{
    
    self.isHome = isHomeApp?@"1":@"0";
}

-(BOOL)isSubscribeStatus{
    
    return [@"1" isEqualToString:subscribeStatus];
}

-(BOOL)isReceiveMessage{

    return [@"1" isEqualToString:isReceive];
}

-(void)setPublicIsReceive:(BOOL)isReceivee;
{
    self.isReceive = isReceivee?@"1":@"0";
}
-(void)setPublicSubscribeStatus:(BOOL)isSubscribeStatus{
    
    self.subscribeStatus = isSubscribeStatus?@"1":@"0";
}


@end
